﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VideoFileOrganization.BatchRename
{
    public partial class CharacterReservationFrm : RenameBaseFrm
    {
        public CharacterReservationFrm()
        {
            InitializeComponent();
            this.Text = "保留字符";
            this.Index = 1;
            this.tabImage = Properties.Resources.exchange_four;
        }

        protected override void ExecuteButton()
        {
            BatchRenameClass.tReviseParam param = new BatchRenameClass.tReviseParam();
            if (rBtnChinese.Checked)
                param.mode = BatchRenameClass.eReviseMode.RETAIN_CHINESE;
            else if (rBtnEnglish.Checked)
                param.mode = BatchRenameClass.eReviseMode.RETAIN_ENGLISH;
            else
                param.mode = BatchRenameClass.eReviseMode.RETAIN_NUMBER;
            param.subString = new List<string>();
            OnReviseEvnet(param);
        }
    }
}
